
<h2>Réglages des généraux</h2>

<form class="form-horizontal" action="<?php echo $CFG->config['base_url']?>setting/admin/create" method="post">

<div class="control-group">
	<label class="control-label" >Titre du site</label>
	<div class="controls">
		<input type="text" class="input-xxlarge" value="<?php echo $general['name']?>" id="name" name="general[name]">
		<span class="help-inline">Maximum 69 charactères.</span>
	</div>
</div>

<div class="control-group">
	<label class="control-label" >Description</label>
	<div class="controls">
		<input type="text" class="input-xxlarge" value="<?php echo $general['description']?>" id="description" name="general[description]">
		<span class="help-inline">En quelques mots, décrivez la raison d’être de ce site, Entre 150-160 characteres.<span class="help-inline">
	</div>
</div>

<div class="control-group">
	<label class="control-label" >Mots Clés</label>
	<div class="controls"><input type="text" class="input-xlarge" value="<?php echo $general['keywords']?>" id="keywords" name="general[keywords]">
	<span class="help-inline">Entre 7-8 mots clés, séparé par , .</span>
	</div>
</div>

<div class="control-group">
	<label class="control-label" >Adresse web du site</label>
	<div class="controls"><input type="text" class="input-xlarge" value="<?php echo $general['base_url']?>" id="base_url" name="general[base_url]"></div>
</div>

<div class="control-group">
	<label class="control-label" >Adresse de messagerie </label>
	<div class="controls"><input type="text" class="input-xlarge" value="<?php echo $general['admin_email']?>" id="admin_email" name="general[admin_email]">
	<span class="help-inline">Cette adresse n’est utilisée que pour l’administration du site&nbsp;; par exemple, la notification de l’inscription d’un nouvel utilisateur.</span>
	</div>
</div>


<div class="control-group">
<label class="control-label" >Format de date</label>
	<div class="controls">
		<label class="radio" title="d/m/Y"><input type="radio" value="d/m/Y"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('d/m/Y')?></span></label><br>
		<label class="radio" title="j F Y"><input type="radio" value="j F Y"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('j F Y')?></span></label><br>
		<label class="radio" title="Y/m/d"><input type="radio" value="Y/m/d"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('Y/m/d')?></span></label><br>
		<label class="radio" title="m/d/Y"><input type="radio" value="m/d/Y"  name="date_format" onclick="$('#format_date').val(this.value)"/> <span><?php echo date('m/d/Y')?></span></label><br>
		<label class="help-inline">Personnalisé&nbsp;: </label>
		<input type="text" class="small-text" value="<?php echo $general['date_format']?>" name="general[date_format]" id='format_date'>
		<span  class="help-inline"><?php echo date($general['date_format'])?></span>
	
	</div>
</div>

<div class="control-group">
	<label class="control-label" >Symbol </label>
	<div class="controls"><input type="text" class="regular-text ltr" value="<?php echo $general['admin_currency']?>" id="admin_currency" name="general[admin_currency]" />
	<span  class="help-inline">Affichier dans la facture</span></div>
</div>

<div class="control-group">
	<label class="control-label" >Templete d'administrateur </label>
	<div class="controls">
		<legend class="screen-reader-text">Dossier Template</legend>
		<?php foreach($templateAdmin as $templateKey=>$template){
		$template=basename($template);
		?>
		<label title="<?php echo $template?>"><input type="radio" value="<?php echo $template?>"  name="admin_template" onclick="$('#admin_template').val(this.value)"/> <span><?php echo $template?></span></label><br>
		<?php }?>
		<label  class="help-inline">Personnalisé&nbsp;: </label>
		<input type="text" class="small-text" value="<?php echo $general['admin_template']?>" name="general[admin_template]" id='admin_template'>
	
		</fieldset>
	</div>
</div>

<div class="control-group">
<label class="control-label" >Templete Front Office </label>
<div class="controls">
	<legend class="screen-reader-text">Dossier Template</legend>
	<?php
	foreach($templateAdmin as $templateKey=>$template){
	$template=basename($template);
	?>
	<label title="<?php echo $template?>"><input type="radio" value="<?php echo $template?>"  name="front_template" onclick="$('#front_template').val(this.value)"/> <span><?php echo $template?></span></label><br>
	<?php }?>
	<label  class="help-inline">Personnalisé&nbsp;: </label>
	<input type="text" class="small-text" value="<?php echo $general['front_template']?>" name="general[front_template]" id='front_template'>

	</fieldset>
</div>
</div>

<div class="controls">
<input name="medias_submit" id="submit" class="btn btn-success" value="Enregistrer les modifications" type="submit">

</div>
</form>

